//
//  ZFLVenueViewController.m
//  iOSAppDevRepo_Example
//
//  Created by 翁胜琼 on 2019/2/12.
//  Copyright © 2019 折疯了. All rights reserved.
//

#import "ZFLVenueViewController.h"
#import <iOSAppDevRepo/WSQTextView.h>
#import "ZFLTestView.h"
#import "UIColor+SQColor.h"

@interface ZFLVenueViewController ()

@end

@implementation ZFLVenueViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)setupUI
{
    [super setupUI];
    
    [self setupTextView];
    [self setupTestView1];
    [self setupTestView2];
    [self setupTestView3];
    [self setupTestView4];
}

- (void)setupTextView
{
    WSQTextView *textView = [[WSQTextView alloc] initWithFrame:CGRectMake(30, 80, 150, 240)];
    [self.view addSubview:textView];
    textView.placeholder = @"placeholder";
    textView.text = @"3414 ";
    textView.textColor = red_color;
    textView.backgroundColor = purple_color;
}

- (void)setupTestView1
{
    ZFLTestView *testView = [[ZFLTestView alloc] initWithframe:CGRectMake(50, 300, 200, 300) viewModel:[WSQViewModel new]];
    testView.backgroundColor = blue_color;
    [self.view addSubview:testView];
}

- (void)setupTestView2
{
    ZFLTestView *testView = [ZFLTestView initFromXIB];
    testView.frame = CGRectMake(70, 80, 150, 200);
    testView.backgroundColor = [UIColor SQRandomColor];
    [self.view addSubview:testView];
}

- (void)setupTestView3
{
    ZFLTestView *testView = [ZFLTestView  initFromXIBWithViewModel:[WSQViewModel new]];
    testView.frame = CGRectMake(90, 80, 150, 200);
    testView.backgroundColor = [UIColor SQRandomColor];
    [self.view addSubview:testView];
}

- (void)setupTestView4
{
    ZFLTestView *testView = [ZFLTestView initFromXIBWithViewModel:[WSQViewModel new] withFrame:CGRectMake(80, 400, 200, 200)];
    testView.backgroundColor = [UIColor SQRandomColor];
    [self.view addSubview:testView];
}

@end
